package nb.yan;

import nb.yan.controller.impl.OrderControllerImpl;
import nb.yan.controller.impl.PraiseControllerImpl;
import nb.yan.dao.impl.ArrayPraiseDao;
import nb.yan.dao.impl.ListOrderDaoImpl;
import nb.yan.service.impl.OrderServiceImpl;
import nb.yan.service.impl.PraiseServiceImpl;
import nb.yan.view.Menu;

public class OrderMgr {

	public static void main(String[] args) {
		Menu menu = new Menu(new OrderControllerImpl(new OrderServiceImpl(new ListOrderDaoImpl())), 
							new PraiseControllerImpl(new PraiseServiceImpl(new ArrayPraiseDao())));
		while (true) {
			menu.display();
			menu.choose();
		}
	}

}
